package com.sevattal.service.leaves.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sevattal.service.base.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *  采购主表
 * </p>
 *
 * @author Sevattal
 * @since 2021-08-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_purchaseMainOrder")
@ApiModel(value="PurchaseMainOrder对象", description=" 采购主表")
public class PurchaseMainOrder extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "采购单号")
    @TableField(value = "f_pmId")
    private String fPmid;

    @ApiModelProperty(value = "采购员工号")
    @TableField("f_eId")
    private String fEid;

    @ApiModelProperty(value = "审核人工号")
    @TableField("f_auditId")
    private String fAuditid;

    @ApiModelProperty(value = "供应商号")
    @TableField("f_pId")
    private String fPid;

    @ApiModelProperty(value = "仓库id")
    @TableField("f_whId")
    private String fWhid;

    @ApiModelProperty(value = "采购日期")
    @TableField("f_pmDate")
    private Date fPmdate;

    @ApiModelProperty(value = "采购状态")
    @TableField("f_pmStatus")
    private String fPmstatus;

    @ApiModelProperty(value = "是否确认")
    @TableField("f_pmConfirm")
    private String fPmconfirm;

    @ApiModelProperty(value = "备注")
    @TableField("f_pmMemo")
    private String fPmmemo;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否禁用 1（true）已禁用，  0（false）未禁用")
    @TableField("is_disabled")
    private Boolean disabled;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
